package com.ourygo.fileselect.activity

import android.content.Intent
import android.net.Uri
import android.os.Bundle
import com.ourygo.fileselect.base.BaseActivity
import com.ourygo.fileselect.databinding.AboutActivityBinding
import com.ourygo.fileselect.util.Utils


class AboutActivity : BaseActivity() {

    private lateinit var viewBinding: AboutActivityBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        viewBinding = AboutActivityBinding.inflate(layoutInflater)
        setContentView(viewBinding.root)

        Utils.initToolbar(this, viewBinding.toolbar.toolbar, "关于", true)

        viewBinding.tvUpdate.setOnClickListener {
            startActivity(
                Intent(
                    Intent.ACTION_VIEW,
                    Uri.parse("http://fs.ourygo.top")
                )
            )
        }
    }
}
